home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
AmigaSystem
/
Scalos
/
Scalos-Module_EC
/
Install_Module
< prev
next >
Wrap
Text File
|
2002-10-28
|
6KB
|
239 lines
; Installer for $VER:Execute Command 1.2.8 (09.01.2001)
(SET @default-dest "SCALOS:Modules/")
(SET @default-docdir "SCALOS:Docs/")
(SET @default-images "SCALOS:Themes/Default/Modules/")
(SET default_lang 1)
; ***** english texts *****
(SET #needKick (CAT "\nExecute Command needs Kickstart ROM Version 39 at least." ) )
(SET #startMsg (CAT "\nS A T A N i C D R E A M S S O F T W A R E\n\npresents\n\nExecute Command V1.2.8 - the ultimate replacement !\n\n"
"This script installs \"Execute_Command.module\" on your AMIGA\nrunning the Scalos desktop replacement.\n\n") )
(SET #destPrompt "Please choose the destination directory for Execute Command.\n" )
(SET #copyPFiles "Copying program files" )
(SET #langPrompt "Select the languages you wish to use with Execute Command." )
(SET #DocPrompt "Select the directory for the documentation file." )
(SET #exitMsg "Execute Command installation succeeded\nYou can use it now!\n\n\n\n\nvisit us @ http://scalos.satanicdreams.com" )
(SET #makingdirs "Creating directory structure" )
; ***** start installation *****
(if (< (/ (GETVERSION) 65536) 39)
(ABORT #needKick)
)
(COMPLETE 0)
(MESSAGE #startMsg)
; ***** set-up directory structure for future versions of Scalos *****
(MAKEDIR "SCALOS:Themes"
(PROMPT #makingdirs)
(HELP @help-makedir)
)
(MAKEDIR "SCALOS:Themes/Default")
(MAKEDIR "SCALOS:Themes/Default/Modules")
; ***** set dest dir for Execute Command *****
(SET @default-dest "Scalos:Modules")
(COPYFILES (SOURCE "Execute_Command.module")
(HELP @copyfiles-help)
(DEST @default-dest )
(INFOS)
(NOPOSITION)
)
; ***** if old image has been accessed since bootup it will be cached, flush memory first! *****
(RUN "Avail Flush >NIL:")
(COMPLETE 25)
(COPYFILES (SOURCE "Images")
(ALL)
(HELP @copyfiles-help)
(DEST @default-images)
(INFOS)
)
; ***** install some languages *****
(SET language (ASKOPTIONS (PROMPT #langPrompt)
(HELP @askoptions-help)
(CHOICES "english"
)
(DEFAULT (+ default_lang 0) )
)
)
;(if (IN language 1)
; (COPYFILES (SOURCE "catalogs/deutsch/Execute_Command.catalog")
; (DEST "Locale:Catalogs/deutsch") )
;)
; ***** get dest for doc files *****
(COMPLETE 45)
(SET @DocDir
(ASKDIR (PROMPT #DocPrompt)
(HELP @askdir-help)
(DEFAULT @default-docdir)
(NEWPATH)
)
)
; ***** install doc files *****
(COMPLETE 50)
(if (IN language 0)
(SET SDocDir "docs/english")
)
(if (IN language 1)
(SET SDocDir "docs/deutsch")
)
(COPYFILES (SOURCE SDocDir)
(DEST @DocDir)
(CHOICES "ExecuteCommand.guide")
(INFOS)
(NOPOSITION)
)
; ***** do you wanna custom Shell command? *****
;(COMPLETE 60)
;(SET #setenv (ASKBOOL (PROMPT
; "Do you wish to enter a custom command line\n"
; "that will be executed when opening a new shell\n"
; "from within the \"Execute Command\" window?"
; )
; (DEFAULT 0)
; (HELP @askbool-help)
; )
;)
;
;
; ***** create ENV variable *****
;(DELETE "ENV:NEWCLI" (OPTIONAL "force"))
(COMPLETE 75)
;(IF (= 1 #setenv)
; ((SET #envcom (ASKSTRING
; (PROMPT
; "Enter you custom command to be used.\n"
; "This will be saved in the Environment variable\n"
; "'NEWCLI' as used by other applications."
; )
; (DEFAULT (GETENV "NEWCLI"))
; (HELP @askstring-help)
; )
; )
;
; (RUN (cat "echo NOLINE >ENVARC:NEWCLI " #envcom))
; )
;)
; ***** create a default shell command *****
;(IF (= 0 #setenv)
; (RUN "echo NOLINE >ENVARC:NEWCLI NewShell WINDOW=CON:0/20/600/200/ScalosShell/AUTO/WAIT")
;)
; ***** check a good enough transferanim.mcc is installed *****
(SET #version (GETVERSION "mui:libs/mui/transferanim.mcc"))
(SET #ver (/ #version 65536))
(SET #rev (- #version (* #ver 65536)))
(IF (= #ver 1)
(IF (< #rev 5)
(MESSAGE
"IMPORTANT NOTICE!\n"
("\nYou appear to have TransferAnim.mcc v%ld.%ld installed\n" #ver #rev)
"which is known to be buggy. Please upgrade to at least v1.5 which\n"
"is available on Aminet NOW!"
)
)
)
; ***** check a good enough imagepool.library is installed *****
(SET #version (GETVERSION "libs:imagepool.library"))
(SET #ver (/ #version 65536))
(SET #rev (- #version (* #ver 65536)))
(IF (= #ver 0)
(IF (< #rev 7)
(MESSAGE
"IMPORTANT NOTICE!\n"
("\nYou appear to have ImagePool.library v%ld.%ld installed.\n" #ver #rev)
"Please upgrade to at least v0.7ß, available on Aminet NOW!"
)
)
)
; ***** check a good enough betterstring.mcc is installed *****
(SET #version (GETVERSION "mui:libs/mui/betterstring.mcc"))
(SET #ver (/ #version 65536))
(SET #rev (- #version (* #ver 65536)))
(IF (= #ver 11)
(IF (< #rev 3)
(MESSAGE
"IMPORTANT NOTICE!\n"
("\nYou appear to have BetterString.mcc v%ld.%ld installed.\n" #ver #rev)
"Please upgrade to at least v11.3, available on Aminet NOW!"
)
)
)
; ***** check a good enough openURL.library is installed *****
(set #exist (EXISTS "libs:openurl.library" (NOREQ)))
(IF (= 1 #exist)
(SET #version (GETVERSION "libs:openurl.library"))
(SET #ver (/ #version 65536))
(SET #rev (- #version (* #ver 65536)))
(IF (= #ver 2)
(IF (< #rev 2)
(MESSAGE
"IMPORTANT NOTICE!\n"
("\nYou appear to have OpenURL.library v%ld.%ld installed.\n" #ver #rev)
"Please upgrade to at least v2.0, available on Aminet NOW!"
)
)
)
)
; ***** library is not present, recommend getting it *****
(COMPLETE 90)
(IF (= 0 #exist)
(MESSAGE
"IMPORTANT NOTICE!\n"
"\nIf you use the internet \"Execute Command\" can be used\n"
"to access websites by typing the URL into the string gadget!\n\n"
"But, in order for this to work you need to install\n"
"the \"OpenURL\" package as found on Aminet.\n\n"
"\"Execute Command\" can function okay without it however."
)
)
(COMPLETE 95)
(STARTUP "Scalos-ECM"
(PROMPT "Adding a temporary assign to your S:User-Startup\nuntil main Scalos system is updated.\nIt will then be removed.")
(HELP "No help is available. Just proceed and don't ask questions!")
(COMMAND "Assign THEME: SCALOS:Themes/Default")
)
(COMPLETE 100)
(EXIT #exitMsg)